from pydantic import BaseModel
from typing import Union, Optional, List

class DeptData(BaseModel):
    """
    岗位信息表对应pydantic模型
    """
    dept_id: Optional[int]
    dept_code: Optional[str]
    parent_id: Optional[int]
    dept_name: Optional[str]
    status: Optional[str]
    remark: Optional[str] = ''

    class Config:
        from_attributes = True